package com.spring.mvc.controller;

import com.spring.mvc.controller.pojo.Person;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * @auther 尚智江
 * @Date 2022/11/1 11:37
 */
@Controller
public class TestController {
    @RequestMapping("/testJson")
    @ResponseBody
    public Person testJson(@RequestBody Person user){
        System.out.println("pname"+user.getPname()+","+"password"+user.getPassword()+","+"page"+user.getPage());
        return user;
    }
}
